package com.marion.study.aop.pattern.staticproxy;

public class ProxyImage implements Image {

    private String name;

    private Image image;

    public ProxyImage(String name) {
        this.name = name;
        image = new RealImage(name);
    }

    @Override
    public void display() {
        image.display();
    }

    @Override
    public void draw() {
        image.draw();
    }
}
